home *** CD-ROM | disk | FTP | other *** search
Text File | 1999-01-14 | 1.0 KB | 22 lines | [TEXT/CWIE] |
- SpritePersistence/DataPersistence
-
- What use are these modules?
-
- For buttons, you would probably do this while working on your interface. e.g. you would
- move the buttons around, and when you're satisfied with them, do a SWGSaveSpritesInLayer
- call, perhaps in response to a keyboard command like cmd-S.
-
- For regular sprites, you might for instance use this to prepare the starting state for
- game levels; or you might wish to be able to save the game state in the middle of a level
- (of course, you would probably have to save other level-related data too: for this, see
- the DataPersistence module). You might even use this for debugging purposes, to log
- the sprite states at a given moment, or when you press a key, or each second, or every
- 100 cycles, or even (god forbid!) each cycle if you had a very elusive bug regarding
- collisions...
-
- In a finished program, you might use this as a save game feature; or it might be used as
- a level-editor feature... whatever.
-
-
- For detailed usage info, see SpritePersistence.note and DataPersistence.note
-